const app = getApp();
var config = app.globalData.config;
const http = require('../../utils/http.js');

Page({

	/**
	 * 页面的初始数据
	 */
	data: {
		leave_list:[]
	},
	onReady: function() {
		if (!app.login()) {
			return;
		}
	},
	onLoad(options) {
		this.getLeaveList();
	},
	getLeaveList:function(){
		var that = this;
		http.httpPost(config.getStudentLeaveList, {
		}, function(e) {
			that.setData({
				leave_list:e.data
			})
		});
		
	}
})
